package com.csx.saas.platform.system.dto;

import com.csx.saas.platform.system.enumeration.SystemMenuTypeEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * 实体类
 * 菜单
 * </p>
 *
 * @author ChenSongXin
 * @since 2021-02-28
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = false)
@Builder
@ApiModel(value = "SystemMenuPageQuery", description = "菜单")
public class SystemMenuPageQuery implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 描述
     */
    @ApiModelProperty(value = "描述")
    private String describe;
    /**
     * 权限标记
     */
    @ApiModelProperty(value = "权限标记")
    private String resourceSign;
    /**
     * 路径
     */
    @ApiModelProperty(value = "路径")
    private String path;
    /**
     * 组件
     */
    @ApiModelProperty(value = "组件")
    private String component;
    /**
     * 菜单图标
     */
    @ApiModelProperty(value = "菜单图标")
    private String icon;
    /**
     * 菜单类型\n#{MENU:菜单;OPERATION:操作权限;}
     */
    @ApiModelProperty(value = "菜单类型\n#{MENU:菜单;OPERATION:操作权限;}")
    private SystemMenuTypeEnum type;
    /**
     * 菜单 0隐藏 1显示
     */
    @ApiModelProperty(value = "菜单 0隐藏 1显示")
    private Boolean hidden;

    @ApiModelProperty(value = "名称")
    protected String label;

    @ApiModelProperty(value = "父ID")
    protected Long parentId;

    @ApiModelProperty(value = "排序号")
    protected Integer sortValue;

    @ApiModelProperty(value = "上级名称")
    private String parentName;
}
